package com.hhh.demo.sx.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 库存修改记录
 * </p>
 *
 * @author hhh
 * @since 2022-01-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Record implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer storeId;

    private Integer productId;

    private Integer num;

    /**
     * 购入0，销售出1，调拨2
     */
    private Integer type;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String date;

    /**
     * 调拨到仓库
     */
    private Integer toStoreId;


}
